﻿//using System.Windows.Controls;
//using System.Windows;

//namespace Oliver.Controls
//{
//    public partial class BaseContainer : Panel
//    {
//        #region ItemWidth

//        public double ItemWidth
//        {
//            get { return (double)GetValue(ItemWidthProperty); }
//            set { SetValue(ItemWidthProperty, value); }
//        }

//        public static readonly DependencyProperty ItemWidthProperty =
//            DependencyProperty.Register("ItemWidth", typeof(double), typeof(BaseContainer), 
//            new PropertyMetadata(100.0, OnItemWidthChanged));

//        private static void OnItemWidthChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
//        {
//            BaseContainer baseContainer = d as BaseContainer;
//            baseContainer.InvalidateArrange();
//        }

//        #endregion 

//        #region ItemHeight

//        public double ItemHeight
//        {
//            get { return (double)GetValue(ItemHeightProperty); }
//            set { SetValue(ItemHeightProperty, value); }
//        }

//        public static readonly DependencyProperty ItemHeightProperty =
//            DependencyProperty.Register("ItemHeight", typeof(double), typeof(BaseContainer),
//            new PropertyMetadata(100.0, OnItemHeightChanged));

//        private static void OnItemHeightChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
//        {
//            BaseContainer baseContainer = d as BaseContainer;
//            baseContainer.InvalidateArrange();
//        }

//        #endregion
//    }
//}
